package com.zr.dao.base;

import java.util.List;
import com.zr.vo.base.BaseDriverPhoto;

/**
 * 司机备证照片上传和回显
 */
public interface BaseDriverPhotoDao {
    int deleteByPrimaryKey(Integer id);

    int insert(BaseDriverPhoto record);

    int insertSelective(BaseDriverPhoto record);

    BaseDriverPhoto selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BaseDriverPhoto record);

    int updateByPrimaryKey(BaseDriverPhoto record);

    /**
     * 删除当前司机备证图片
     * @param driverId
     * @return
     * @author liutienan
     */
    int deleteByDriverId(String driverId);

    /**
     * 司机备证图片回显
     * @param driverId
     * @return
     * @author liutienan
     */
    List<BaseDriverPhoto> selectByDriverId(String driverId);
}